<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/taglibs.jsp"%>
<html>
<head>
<title>IT管理后台</title>
<link rel="stylesheet" type="text/css" href="/js/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/js/themes/icon.css">
<script type="text/javascript" src="/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/js/easyui_validatebox.js"></script>
<script type="text/javascript" src="/js/locale/easyui-lang-zh_CN.js"></script>
</head>
<script>
	function newUser() {
			win.window('open');
			form.form('clear');
			form.url = '/demo1/user/save';
	}
	function editUser() {
			var row = grid.datagrid('getSelected');
			if (row) {
				win.window('open');
				form.form('load', '/demo1/user/getUser/' + row.id);
				form.url = '/demo1/user/update/' + row.id;
			} else {
				$.messager.show({
					title : '警告',
					msg : '请先选择用户资料。'
				});
			}
	}
	function saveUser() {
			form.form('submit', {
				url : form.url,
				success : function(data) {
					eval('data=' + data);
					if (data.success) {
						grid.datagrid('reload');
						win.window('close');
					} else {
						$.messager.alert('错误', data.msg, 'error');
					}
				}
			});
	}
		
	function closeWindow() {
			win.window('close');
	}
</script>
	<body id="layout">
		<div region="center" fit="fit">
		<form id="czForm" method="post">
			<input name="qxid" value="${map.qxid }" type="hidden"/>
			<table border="0" width="100%">
			<c:forEach items="${rslist}" var="rs" varStatus="st">
				<c:if test="${st.index%2 == 0}">
				<tr>
				</c:if>
					<td>
						<input name="gnsz" type="checkbox" <c:if test="${rs.ck == true }">checked</c:if> value="${rs.id }" />${rs.mc }
				 	<td>
		 		<c:if test="${st.index%2 != 0}">
				</tr>
				</c:if>
		 	</c:forEach>
		 </table>
		 </form>
		</div>
	</body>
</html>
